package com.jzo2o.customer.controller.agency;


import com.jzo2o.customer.model.dto.request.AgencyCertificationAuditAddReqDTO;
import com.jzo2o.customer.model.dto.response.RejectReasonResDTO;
import com.jzo2o.customer.service.IAgencyCertificationService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author author
 * @since 2024-12-03
 */
@RestController
@RequestMapping("agency/agency-certification-audit")
@Api(tags = "服务端机构端审核机构认证")
public class AgencyCertificationAuditController {

    @Autowired
    private IAgencyCertificationService agencyCertificationService;


    @PostMapping
    @ApiOperation("提交认证申请")
    public void certificationApplication(@RequestBody AgencyCertificationAuditAddReqDTO dto){
        agencyCertificationService.certificationApplication(dto);
    }


    @GetMapping("rejectReason")
    @ApiOperation("查询最新的驳回原因")
    public RejectReasonResDTO getJectReason(){
        return agencyCertificationService.getJectReason();
    }

}
